import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../common.dart';

class Listdate extends StatefulWidget {
  Listdate({super.key});
  @override
  State<Listdate> createState() => _QGRulePageState();
}

class _QGRulePageState extends State<Listdate> {

 var items=[1,1,];


  @override
  Widget build(BuildContext context) {
    return Scaffold(
       appBar: AppBar(
          backgroundColor: Color(0XFFFFFFFF),
          centerTitle: true,
          title: wText(text: '兑换明细',size: 18,bold: true),
          leading: buildBackButton(context),
        ),
        body: Padding(padding: EdgeInsets.symmetric(horizontal: 15),
        
        child: Column(
          children: [
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                 wText(text: '数字藏品',color: '999999'),
                 wText(text: '回收价(ST)',color: '999999'),
              ],
            ),
            SizedBox(height: 5,),
            Expanded(child: 
              ListView.builder(
  itemCount: items.length, // 子项的总数
  itemBuilder: (context, index) {
    // 根据索引返回相应的Widget
    return Container(
                  padding: EdgeInsets.only(bottom: 20),
                  margin:EdgeInsets.only(bottom: 20),
                  decoration: BoxDecoration(
                    border: Border(
                      bottom: BorderSide(
                        color: Color(0XFFDDDDDD)
                      )
                    )
                  ),
                  child: Row(
                    children: [
                        wImage(url: 'aaa',width:50,height: 50,borderRadius: 5),
                        SizedBox(width: 5,),
                      Column(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: [
                            Container(
                              margin: EdgeInsets.only(bottom: 2),
                              width: 120,
                              child: wText(text: '藏品名称二十个字藏品名称二十'),
                            ),
                            wText(text: '2022-01-05 16:00:00 加入',color: '878b95')

                        ],
                      )
                      ,
                      Expanded(child:SizedBox()),
                      wText(text: '23549.21',color: 'B10000',bold: true,size: 14)

                    ],
                  ),
                );
  },
)
            )
            
          ],
        )
        ,)
        
        );
  }

  
}
